function Dep() {
  this.watcherList = []
}

Dep.prototype.addWatcher = function (watcher) {
  this.watcherList.push(watcher)
}

Dep.prototype.notify = function () {
  this.watcherList.forEach(watcher=>{
    watcher.update()
  })
}

export default Dep